package cn.jervain.nut.auth.starter.demo;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/demo")
public class DemoController {

    @GetMapping("/public")
    public String demoPublic() {
        return "public";
    }

    @GetMapping("/granted")
    public String demoGranted() {
        return "granted";
    }

}
